package git.soulbgm.pojo;

import javax.persistence.Id;
import javax.persistence.Column;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.Builder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import git.soulbgm.common.annotation.IdBuild;
import git.soulbgm.common.enumerate.IdType;

/**
 * 用户角色表
 *
 * @author SoulBGM
 * @version V1.0
 * @date 2019-11-25 11:23:18
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel(value = "用户角色表")
public class UserRole {

    /**
     * id
     */
    @Id
    @IdBuild(IdType.JDBC)
    @ApiModelProperty("id")
    private Integer id;

    /**
     * user_id
     */
    @ApiModelProperty("user_id")
    private Integer userId;

    /**
     * role_id
     */
    @ApiModelProperty("role_id")
    private Integer roleId;


}